﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Entity.PagedList<Entity.Car_Rental.StaticInfo>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        静态信息列表</h2>
    <table>
        <tr>
            <th>
            </th>
            <th>
                标题
            </th>
            <th>
                建立日期
            </th>
            <th>
                更新日期
            </th>
            <th>
                状态
            </th>
        </tr>
        <% 
            if (Model != null && Model.Count > 0)
            {
                foreach (var item in Model)
                { %>
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id = item.StaticID })%>
                |
                <%: Html.ActionLink("Details", "Details", new { id = item.StaticID })%>
                |
                <%: Html.ActionLink("Delete", "Delete", new { id = item.StaticID })%>
            </td>
            <td>
                <%: item.Title%>
            </td>
            <td>
                <%: item.Info%>
            </td>
            <td>
                <%: String.Format("{0:g}", item.CreateDate)%>
            </td>
            <td>
                <%: String.Format("{0:g}", item.UpdateDate)%>
            </td>
            <td>
                <%: item.Status%>
            </td>
        </tr>
        <tr>
            <td colspan="9">
                <%=Html.Pager(Model) %>
            </td>
        </tr>
        <% }
            } %>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
